package com.xiangyueEducation.uploaderCloud.service.entity;

import com.xiangyueEducation.uploaderCloud.pojo.entity.Diary;

import java.util.List;

public interface DiaryService {
    int createDiary(Diary diary);

    List<Diary> getDiariesByUserId(Long userId);

    List<Diary> getAllActiveDiaries();

    Diary getDiaryById(Long diaryId);

    List<Diary> getDiariesByDateRange(String startTime, String endTime);

    List<Diary> getDiariesByKeyword(String keyword);
}
